<template>
  <div style="height: calc(100% - 130px);">
    <!-- js -->
    <remote-js src="../assets/js/email-decode.min.js"></remote-js>
    <remote-js src="../assets/js/popper.min.js"></remote-js>
    <remote-js src="../assets/js/bootstrap.min.js"></remote-js>
    <remote-js src="../assets/js/color-switcher.js"></remote-js>
    <remote-js src="../assets/js/jquery.counterup.min.js"></remote-js>
    <remote-js src="../assets/js/waypoints.min.js"></remote-js>
    <remote-js src="../assets/js/wow.js"></remote-js>
    <remote-js src="../assets/js/owl.carousel.min.js"></remote-js>
    <remote-js src="../assets/js/nivo-lightbox.js"></remote-js>
    <remote-js src="../assets/js/jquery.slicknav.js"></remote-js>
    <remote-js src="../assets/js/main.js"></remote-js>
    <remote-js src="../assets/js/form-validator.min.js"></remote-js>
    <remote-js src="../assets/js/contact-form-script.min.js"></remote-js>
    <remote-js src="../assets/js/summernote.js"></remote-js>

    <header id="header-wrap">

      <nav class="navbar navbar-expand-lg fixed-top scrolling-navbar">
        <div class="container">

          <div class="navbar-header">
            <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#main-navbar"
              aria-controls="main-navbar" aria-expanded="false" aria-label="Toggle navigation">
              <span class="navbar-toggler-icon"></span>
              <span class="lni-menu"></span>
              <span class="lni-menu"></span>
              <span class="lni-menu"></span>
            </button>
            <a href="index.html" class="navbar-brand"><img src="../assets/img/logo.png" alt=""></a>
          </div>
          <div class="collapse navbar-collapse" id="main-navbar">
            <ul class="navbar-nav mr-auto">
              <li class="nav-item" :class="{ active: activeNav == 'soft' }" @click="activeNav = 'soft'">
                <a class="nav-link">
                  <RouterLink to="/index/soft" style="color: aquamarine;">
                    首页
                  </RouterLink>
                </a>
              </li>
              <li class="nav-item dropdown" :class="{ active: activeNav == 'study' }" @click="activeNav = 'study'">
                <a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown" aria-haspopup="true"
                  aria-expanded="false" style="color: aquamarine;">
                  学习资料
                </a>
                <div class="dropdown-menu" style="background-color: rgba(127, 255, 212, 0.9);">
                  <a class="dropdown-item">
                    <RouterLink to="/videos" style="color: #ffffff;"> 视频</RouterLink>
                  </a>
                  <a class="dropdown-item">
                    <RouterLink to="/books" style="color: #ffffff;"> 文章</RouterLink>
                  </a>
                  <a class="dropdown-item">
                    <RouterLink to="/chm" style="color: #ffffff;"> 文档</RouterLink>
                  </a>
                </div>
              </li>
              <!-- <li class="nav-item " :class="{ active: activeNav == 'PC' }" @click="activeNav = 'PC'">
                <a class="nav-link">
                  <RouterLink to="/index/soft" style="color: aquamarine;">
                    PC
                  </RouterLink>
                </a>
              </li>
              <li class="nav-item" :class="{ active: activeNav == 'PE' }" @click="activeNav = 'PE'">
                <a class="nav-link">
                  <RouterLink to="/index/soft" style="color: aquamarine;">
                    PE
                  </RouterLink>
                </a>
              </li>
              <li class="nav-item dropdown">
                <a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown" aria-haspopup="true"
                  aria-expanded="false">
                  Listings
                </a>
                <div class="dropdown-menu">
                  <a class="dropdown-item" href="adlistinggrid.html">Ad Grid</a>
                  <a class="dropdown-item" href="adlistinglist.html">Ad Listing</a>
                  <a class="dropdown-item" href="ads-details.html">Listing Detail</a>
                </div>
              </li> -->
            </ul>
            <!-- <ul class="sign-in">
              <li class="nav-item dropdown">
                <a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown" aria-haspopup="true"
                  aria-expanded="false"><i class="lni-user"></i> DUXIANG</a>
                <div class="dropdown-menu">
                  <a class="dropdown-item" href="account-profile-setting.html"><i class="lni-home"></i> Account Home</a>
                  <a class="dropdown-item" href="account-myads.html"><i class="lni-wallet"></i> My Ads</a>
                  <a class="dropdown-item" href="account-favourite-ads.html"><i class="lni-heart"></i> Favourite ads</a>
                  <a class="dropdown-item" href="account-archived-ads.html"><i class="lni-folder"></i> Archived</a>
                  <a class="dropdown-item" href="login.html"><i class="lni-lock"></i> Log In</a>
                  <a class="dropdown-item" href="signup.html"><i class="lni-user"></i> Signup</a>
                  <a class="dropdown-item" href="forgot-password.html"><i class="lni-reload"></i> Forgot Password</a>
                  <a class="dropdown-item" href="account-close.html"><i class="lni-close"></i>Account close</a>
                </div>
              </li>
            </ul> -->
          </div>
        </div>
      </nav>


      <div id="hero-area">
        <div class="overlay"></div>
        <div class="container" style="height: 100px;">
          <div class="row">
            <div class="col-md-24 col-lg-24 col-xs-24 text-center">
              <div class="contents">
              </div>
            </div>
          </div>
        </div>
      </div>

    </header>

    <div class="container" style="margin-top: 10px;border: 1px solid rgba(144, 146, 146, 0.507);height: calc(100% - 0px);">
      <el-row>
        <el-col :span="4">
          <el-menu default-active="2" class="el-menu-vertical-demo">
            <el-submenu index="1">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span>导航一</span>
              </template>
              <el-menu-item-group>
                <template slot="title">分组一</template>
                <el-menu-item index="1-1">选项1</el-menu-item>
                <el-menu-item index="1-2">选项2</el-menu-item>
              </el-menu-item-group>
              <el-menu-item-group title="分组2">
                <el-menu-item index="1-3">选项3</el-menu-item>
              </el-menu-item-group>
              <el-submenu index="1-4">
                <template slot="title">选项4</template>
                <el-menu-item index="1-4-1">选项1</el-menu-item>
              </el-submenu>
            </el-submenu>
            <el-menu-item index="2">
              <i class="el-icon-menu"></i>
              <span slot="title">导航二</span>
            </el-menu-item>
            <el-menu-item index="3" disabled>
              <i class="el-icon-document"></i>
              <span slot="title">导航三</span>
            </el-menu-item>
            <el-menu-item index="4">
              <i class="el-icon-setting"></i>
              <span slot="title">导航四</span>
            </el-menu-item>
          </el-menu>
        </el-col>
        <el-col :span="12">
          <RouterView></RouterView>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
import { ref, h } from "vue"
import { RouterView, RouterLink } from "vue-router";
export default {
  data() {
    return {
      activeNav: "study",
    }
  },
  components: {
    'remote-js': {
      render() {
        return h('script', { attrs: { type: 'text/javascript', src: this.src } });
      },
      props: {
        src: { type: String, required: true },
      },
    },
  },
  created() {

  },
  methods: {

  },
  watch: {

  }
}
</script>
<style scoped>
/* //引入css类 */
@import url(../assets/css/bootstrap.min.css);
@import url(../assets/fonts/line-icons.css);
@import url(../assets/css/main.css);
</style>